/******************************

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <iostream>
//for setw, precision()
#include <iomanip>
using namespace std;

void nhap(int *p, int n){
	p = new int[n];
	if(p != NULL)
	{
		for(int i=0; i<n; i++){
			cout << "\nNhap p["<<i<<"]";
			cin >> p[i];
		}
	}
	else{
		cout << "NULL P";
		getch();
	}

}

void in(int *p, int n){
	cout<<"\nIn mang:\n";
	for(int i=0; i<n; i++){

		cout<<" "<<p[i];
	}
}

void main()
{
	int * p = NULL;
	int n = 4;
	nhap(p, n);
	in(p,n);
	getch();
}

/**********************************/